function ret=convertToSu2(mat)
 if(real(det(mat))>1-1e-3)
  ret=mat;
  return;
 endif
 ep2=det(mat);
 ep=sqrt(ep2);
 ret=mat/ep; 
endfunction
